package guda.sqladmin.web.form;

import guda.sqladmin.dao.domain.ProjectDO;
import org.hibernate.validator.constraints.NotEmpty;

public class ProjectForm {
    @NotEmpty(message = "{不能为空}")
    private String projectDesc;

    @NotEmpty(message = "{不能为空}")
    private String projectName;

    public String getProjectDesc() {
        return projectDesc;
    }

    public void setProjectDesc(String projectDesc) {
        this.projectDesc = projectDesc;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public ProjectDO toDO() {
        ProjectDO projectDO = new ProjectDO();
        projectDO.setProjectDesc(this.projectDesc);
        projectDO.setProjectName(this.projectName);
        return projectDO;
    }

}
